﻿<Window x:Class="Halfwit.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:p="clr-namespace:Halfwit.Properties"
    x:Name="me"
    Title="{Binding Content.Title,ElementName=mainFrame,StringFormat='Halfwit - {0}'}" Height="720" Width="480" MinWidth="340"
    ResizeMode="CanResizeWithGrip"
    >
    <Grid>
        <Grid.Background>
            <LinearGradientBrush 
                Opacity="0.6"
                StartPoint="0,0" 
                EndPoint="0,1"
                >
                <GradientStop Color="LightSkyBlue" Offset="0"/>
                <GradientStop Color="Azure" Offset="0.1" />
                <GradientStop Color="Azure" Offset="1" />
            </LinearGradientBrush>
        </Grid.Background>

        <StackPanel x:Name="welcome" Opacity="0.3" Margin="0,60,0,0" >
            <StackPanel.Style>
                <Style TargetType="StackPanel">
                    <Setter Property="Visibility" Value="Hidden" />
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding Content,ElementName=mainFrame}" Value="{x:Null}">
                            <Setter Property="Visibility" Value="Visible" />
                        </DataTrigger>
                    </Style.Triggers>
                </Style>
            </StackPanel.Style>
            <TextBlock FontSize="48" Text="Welcome to Halfwit!" HorizontalAlignment="Center"/>

            <TextBlock FontSize="32" Text="Just a moment ..." HorizontalAlignment="Center"/>
        </StackPanel>

        <Frame x:Name="mainFrame" Focusable="False" NavigationUIVisibility="Hidden" />
    </Grid>
</Window>
